<?php
/**
 * File name : m_node
 * 
 * @package Developer System Site
 * @author VSOFT Dev Team
 * @copyright 2012
 * @version 1.0
 */
class m_node extends CI_Model
{

    public function insert($dataArray)
    {
        $this->db->insert('node',$dataArray);
    }
    public function test()
    {
        return "ok";
    }
    
    public function update($id,$dataArray)
    {
        $this->db->where('idnode',$id);
        $this->db->update('node',$dataArray);
    } 
    
    public function delete($id)
    {
        $this->db->delete('node',array('idnode'=>$id));
    }
     
    public function getData()
    {
      
            $query = $this->db->get('node');
            return $query->result_array();            
        

    }
}
?>                
